package dynamicproxy
import java.lang.reflect.Proxy

class GirlProxyAgent(girl: IGirl) {

    var mGirl: IGirl? = girl

    init {
        this.mGirl = Proxy.newProxyInstance(
            girl.javaClass.classLoader,
            girl.javaClass.interfaces,
            IGirlPoxy(girl)
        ) as? IGirl
    }
}